import React from 'react';
import { Component } from 'react';
import './Camera.less';
import { CameraServer } from './../../app/variables';

export default class Camera extends Component {

  constructor(props) {
    super(props);
  }

  render() {
    return (
      <div className="mod-video">
        <h2>视频设备名称：{this.props.data.selectedCamera.cameraName}</h2>
        <iframe src={CameraServer+this.props.data.selectedCamera.unitId} height="400" width="600">
        </iframe>
      </div>
    );
  }
}
